<%@ page import="domain.Doctor"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="${pageContext.request.contextPath}/admin/css/Style.css"
	type="text/css" rel="stylesheet">
<script language="javascript"
	src="${pageContext.request.contextPath}/admin/js/public.js"></script>
<script language="javascript"
	src="${pageContext.request.contextPath}/admin/js/check.js"></script>

</HEAD>
<script type="text/javascript">
	//设置类别的默认值
	function setExpertiseAndCredentials(t,s) {
		var expertise = document.getElementById("expertise");//得到下拉列表

		var ops = expertise.options;//得到下拉列表中的所有option标签数组
		for ( var i = 0; i < ops.length; i++) {
			if (ops[i].value == t) {//判断哪一个option选项中的value值与t(当前书的类名称)相等
				ops[i].selected = true;//相等则把selected=selected加上
				break;
			}
		}
		
		
		var credentials = document.getElementById("credentials");//得到下拉列表
		
		var ops1 = credentials.options;//得到下拉列表中的所有option标签数组
		for ( var i = 0; i < ops1.length; i++) {
			if (ops1[i].value == s) {//判断哪一个option选项中的value值与s(当前书的类名称)相等
				ops1[i].selected = true;//相等则把selected=selected加上
				return;
			}
		}
	};
</script>
<body onload="setExpertiseAndCredentials('${doctor.expertise}','${doctor.credentials}')">
	<form id="userAction_save_do" name="Form1"
		action="${pageContext.request.contextPath }/doctor/updateDoctorServlet" method="post">
	
	<input type="hidden" name="doctorId" value="${doctor.doctorId }"/>
		<table cellSpacing="1" cellPadding="5" width="100%" align="center"
			bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
			<tr>
				<td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
					height="26"><strong><STRONG>编辑医生信息</STRONG> </strong></td>
			</tr>


			<tr>
				<td align="center" bgColor="#f5fafe" class="ta_01">医生名字：</td>
				<td class="ta_01" bgColor="#ffffff"><input type="text"
					name="doctorName" class="bg" value="${doctor.doctorName }" /></td>
				<td align="center" bgColor="#f5fafe" class="ta_01">医生电话：</td>
				<td class="ta_01" bgColor="#ffffff"><input type="text"
					name="doctorPhone" class="bg" value="${doctor.doctorPhone }" /></td>
			</tr>

			<tr>
				<td align="center" bgColor="#f5fafe" class="ta_01">医生专业：</td>
				<td class="ta_01" bgColor="#ffffff"><select name="expertise"
					id="expertise">
						<option value="" selected="selected">--选择医生专业--</option>
						<option value="全种类">全种类</option>
						<option value="猫狗系">猫狗系</option>
						<option value="水族类">水族类</option>
						<option value="爬行类">爬行类</option>
						<option value="玩蛇">玩蛇(萧炎专属)</option>
				</select>
				<TD class="ta_01" align="center" bgColor="#f5fafe">资格证书：</TD>
				<td class="ta_01" bgColor="#ffffff"><select name="credentials"
					id="credentials">
						<option value="" selected="selected">--选择资格证书--</option>
						<option value="综合救治资格证书高级">综合救治资格证书高级</option>
						<option value="综合救治资格证书中级">综合救治资格证书中级</option>
						<option value="综合救治资格证书初级">综合救治资格证书初级</option>
						<option value="爬行类救治资格证书高级">爬行类救治资格证书高级</option>
						<option value="爬行类救治资格证书中级">爬行类救治资格证书中级</option>
						<option value="爬行类救治资格证书初级">爬行类救治资格证书初级</option>
						<option value="猫狗救治资格证书高级">猫狗救治资格证书高级</option>
						<option value="猫狗救治资格证书中级">猫狗救治资格证书中级</option>
						<option value="猫狗救治资格证书初级">猫狗救治资格证书初级</option>
						<option value="水族救治资格证书高级">水族救治资格证书高级</option>
						<option value="水族救治资格证书中级">水族救治资格证书中级</option>
						<option value="水族救治资格证书初级">水族救治资格证书初级</option>
				</select></td>
			</tr>
			<TR>
			</TR>
			<TR>
				<td align="center" colSpan="4" class="sep1"><img
					src="${pageContext.request.contextPath}/admin/images/shim.gif">
				</td>
			</TR>


			<tr>
				<td class="ta_01" style="WIDTH: 100%" align="center"
					bgColor="#f5fafe" colSpan="4"><input type="submit"
					class="button_ok" value="确定"> <FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>

					<input type="reset" value="重置" class="button_cancel"> <FONT
					face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <INPUT
					class="button_ok" type="button" onclick="history.go(-1)" value="返回" />
					<span id="Label1"> </span></td>
			</tr>
		</table>
	</form>




</body>
</HTML>